#include<iostream>
#include<string>
#include"calculator.h"
using namespace std;

int main()
{
  calculator cal;
  string input;
  cout<<"参考算例："<<endl;
  
  input="2^(1 + 3)-5*(15.23)/(1+2)*3-5";
  cout<<"输入1 : "<<input;
  cal.calculate(input);
  cout<<endl;
   
  input="1.25+(3*(1+2^2)*3-43)^(4-2)";
  cout<<"输入2 : "<<input;
  cal.calculate(input);
  cout<<endl;
  
   input="2^((1 + 3)-5*(15.23)/(1+2)*3-5";
  cout<<"输入3 : "<<input;
  cal.calculate(input);
  cout<<endl;
  
  input="2^(1 + 3)-5*(15.23)/(1-1)*3-5";
  cout<<"输入4 : " <<input;
  cal.calculate(input);
  cout<<endl;
  
  cout<<"自己设计的算例："<<endl;
  input="2^(*1 + 3)-5*(15.23)/(1+2)*3-5";
  cout<<"输入5 : "<<input;
  cal.calculate(input);
  cout<<endl;
  
  input="0.203.22+23^3";
  cout<<"输入6 : "<<input;
  cal.calculate(input);
  cout<<endl;
  
  input="svdyuwv7 86b ";
  cout<<"输入7 : "<<input;
  cal.calculate(input);
  cout<<endl;

  
  return 0;
}
